<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of career
 *
 * @author MFerreira
 */
class career extends ModuleModel {

    function GetAll() {
        return $this->services->PlanesEstudios->GetAll();
    }

    function GetByFacultad($Facultad) {
        return $this->services->PlanesEstudios->GetByFacultad($Facultad);
    }
    
    function GetById($id) {
        return $this->services->PlanesEstudios->GetById($id);
    }

    function GetByTipoPrograma($TipoPrograma, $raw = true) {
        $planesEstudio = $this->services->PlanesEstudios;
        if ($raw) {
            $planesEstudio->setRawMode(true);
        }
        $result = $planesEstudio->GetByTipoPrograma($TipoPrograma);
        $planesEstudio->setRawMode(false);

        return $result;
    }
    
    function GetByPeriodoAcademico(PeriodoAcademico $periodo){
        return $this->services->PlanesEstudios->GetByPeriodoAcademico($periodo);
    }

}

?>